﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucRightMenu.ascx.cs"
    Inherits="Indochinaodyssey.UserControl.NavigatorMenu.ucRightMenu" %>
<table border="0" cellpadding="0" cellspacing="0" width="100%">
    <tr>
        <td>
            <table align="center" border="0" cellpadding="0" cellspacing="0" width="95%">
                <tr>
                    <td height="50">
                        <div align="left">
                            <asp:ObjectDataSource ID="odsTenDanhMuc" runat="server" SelectMethod="DanhMuc_getDanhMuc"
                                TypeName="IOBusiness.ClassLinq.clsLqDanhMuc">
                                <SelectParameters>
                                    <asp:QueryStringParameter DefaultValue="" Name="idDanhMuc" QueryStringField="catid"
                                        Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                            <asp:DataList ID="DataList2" runat="server" DataSourceID="odsTenDanhMuc" Width="100%">
                                <ItemTemplate>
                                    <td height="50">
                                        <div align="left">
                                            <span class="title">
                                                <asp:Label ID="TenDanhMucLabel" runat="server" Text='<%# Eval("TenDanhMuc") %>' />
                                            </span>
                                        </div>
                                    </td>
                                </ItemTemplate>
                            </asp:DataList>
                        </div>
                        <div align="left">
                            <asp:DataList ID="DataList1" runat="server" DataSourceID="obsRightMenu" Width="100%">
                                <ItemTemplate>
                                    <td height="40" style="border-bottom: #345b00 1px dashed; color: #345B00;">
                                            <a href='<%#"?typeid=" + Eval("ID") + "&catid=" + Eval("MaDanhMuc") %>' class="linkmenu"><%# Eval("TenTheLoai") %></a>
                                    </td>                                    
                                </ItemTemplate>
                            </asp:DataList>
                            <asp:ObjectDataSource ID="obsRightMenu" runat="server" SelectMethod="TheLoai_getTheLoaiByDanhMucId"
                                TypeName="IOBusiness.ClassLinq.clsLqTheLoai">
                                <SelectParameters>
                                    <asp:QueryStringParameter Name="idDanhMuc" QueryStringField="catid" 
                                        Type="Int32" />
                                </SelectParameters>
                            </asp:ObjectDataSource>
                        </div>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>
